import 'package:kkhousekeep/generated/json/base/json_convert_content.dart';
import 'package:kkhousekeep/models/home_check_home_bind_entity.dart';

HomeCheckHomeBindEntity $HomeCheckHomeBindEntityFromJson(Map<String, dynamic> json) {
	final HomeCheckHomeBindEntity homeCheckHomeBindEntity = HomeCheckHomeBindEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		homeCheckHomeBindEntity.code = code;
	}
	final HomeCheckHomeBindObj? obj = jsonConvert.convert<HomeCheckHomeBindObj>(json['obj']);
	if (obj != null) {
		homeCheckHomeBindEntity.obj = obj;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		homeCheckHomeBindEntity.msg = msg;
	}
	return homeCheckHomeBindEntity;
}

Map<String, dynamic> $HomeCheckHomeBindEntityToJson(HomeCheckHomeBindEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['obj'] = entity.obj.toJson();
	data['msg'] = entity.msg;
	return data;
}

HomeCheckHomeBindObj $HomeCheckHomeBindObjFromJson(Map<String, dynamic> json) {
	final HomeCheckHomeBindObj homeCheckHomeBindObj = HomeCheckHomeBindObj();
	final String? token = jsonConvert.convert<String>(json['token']);
	if (token != null) {
		homeCheckHomeBindObj.token = token;
	}
	final bool? roomCheckPass = jsonConvert.convert<bool>(json['roomCheckPass']);
	if (roomCheckPass != null) {
		homeCheckHomeBindObj.roomCheckPass = roomCheckPass;
	}
	final String? ownerType = jsonConvert.convert<String>(json['ownerType']);
	if (ownerType != null) {
		homeCheckHomeBindObj.ownerType = ownerType;
	}
	return homeCheckHomeBindObj;
}

Map<String, dynamic> $HomeCheckHomeBindObjToJson(HomeCheckHomeBindObj entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['token'] = entity.token;
	data['roomCheckPass'] = entity.roomCheckPass;
	data['ownerType'] = entity.ownerType;
	return data;
}